package com.common.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 定时任务调度日志表
 * </p>
 *
 * @author zhaobo
 * @since 2025-10-11
 */
@Getter
@Setter
@TableName("sys_job_log")
@ApiModel(value = "SysJobLog对象", description = "定时任务调度日志表")
public class JobLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("任务日志ID")
    @TableId(value = "job_log_id", type = IdType.AUTO)
    private Long jobLogId;

    @ApiModelProperty("任务名称")
    @TableField("job_name")
    private String jobName;

    @ApiModelProperty("任务组名")
    @TableField("job_group")
    private String jobGroup;

    @ApiModelProperty("调用目标字符串")
    @TableField("invoke_target")
    private String invokeTarget;

    @ApiModelProperty("日志信息")
    @TableField("job_message")
    private String jobMessage;

    @ApiModelProperty("执行状态（0正常 1失败）")
    @TableField("status")
    private String status;

    @ApiModelProperty("异常信息")
    @TableField("exception_info")
    private String exceptionInfo;
}
